package com.hh.demo.service;

import com.hh.demo.domain.PayOrder;
import com.baomidou.mybatisplus.service.IService;
import com.hh.demo.dto.AlipayNotifyDto;
import com.hh.demo.dto.PayApplyDto;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author goeun
 * @since 2022-08-01
 */
public interface IPayOrderService extends IService<PayOrder> {

    String apply(PayApplyDto dto);
    /**
     * 支付成功，支付宝到我们项目的回调
     * @param dto
     */
    String notify(AlipayNotifyDto dto) throws Exception;

    /**
     * 支付超时取消支付单
     * @param orderNo
     */
    void cancelOrder(String orderNo);
}
